package com.takeaway.controller;

import com.takeaway.pojo.ResultVO;
import com.takeaway.utils.ResultVOUtil;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import javax.servlet.http.HttpSession;

/**
 * <p>
 * 卖家信息表 前端控制器
 * </p>
 */
@RestController
@RequestMapping("/meishipai/seller-info")

public class SellerInfoController {

    /**
     * 登录 接口
     * @param username
     * @param pass
     * @return
     */
    @RequestMapping("/login.do")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "username",value = "用户名", required = true,dataType = "string"),
            @ApiImplicitParam(name = "pass",value = "密码", required = true,dataType = "string")
    })
    public ResultVO login(String username, String pass, HttpSession session){
        // 调用service层方法

        System.out.println(username+","+pass);
        return ResultVOUtil.success("登录成功");
    }


}

